import shortuuid

from common.mysql.MySQLhelper import get_sql_helper

sqlhelper = get_sql_helper()


def insert_shequn_voice(message_id, content):
    id = str(shortuuid.ShortUUID().random(20))
    sqlhelper.insert_one(
        "INSERT INTO shequn_voice (id, message_id, is_send_alibaba, file_link) VALUES(%s, %s, %s, %s); ",
        (
            id, message_id, 0, content))
